typeof tests passing