Adding more diagnostics to the test

Adding logic to throw and stop the tests if the response from the server is not OK.