added jasmine unit tests