Practicing implementation of Jasmine spy feature