fix tests for browsers