Added tests adn docs for instanceof
Added more comments on the tests