Updated jasmine to 2.1 and rewrote custom toBeInstanceOf matcher.