add tests for instanceof
fix a cpplint error