Jest test window onerror. reload to function correctly. This should preferably be done...