Class on Jasmine Unit Testing