testing typof function