add "instanceof" test for examples