more tests for hal+json
use a response in tests