Jasmine testing controller