Create custom jasmine matcher for "instance of" and use this across the unit tests.