Added jasmine unit tests