Testing angularjs-rails-resource