add spec for issue #564

Ensure JS errors are not propagated even if browser restarts.