Tests: Make tests run cleanly in Chrome