Fighting with unit testing and Jasmine