Added tests using the jasmine testing sweet