fix tests for ff and chrome