add jasmine unit tests