unit testing exercise, using Jasmine