Added Jasmine unit tests