Testing SPA with angularjs and webapi