test(transform): fix clear() test on firefox checking wrong value