Initial work on jasmine unit tests.