Fix test failures under Firefox