Fixed assertTypeOf issue