Testing AngularJS services that use $resource | Hacker News Reader