REST, Angular Resources and tests