This should be changed to: 

assert json = JSON.parse(@response.body) 

to avoid the error: NameError: uninitialized constant ErrorHandlingTest::Json