fix tests on chrome and firefox