working on jasmine unit tests