moved Resource to outer scope
returning hal/json
specifying application/hal+json header from tests