added snipper for jasmine createSpy