Added unit tests for Jasmine