Adding some jasmine test for the new methods