change object test to include typeof operand test