fix tests to pass in firefox
fix tests to pass all browsers