First testing in a more elegant way (jasmine)