test for instanceof with classes