test for typeof