change test to typeof