make test compatible with Firefox.