fix tests
make all tests pass in firefox nightly