Added some Jasmine unit tests