Testing POST with ngResource