unit testing using jasmine