Fix browser tests on old Firefox/Chrome