Fix `typeof` in tests.