ref(test): close the response body and indicate the status code.
Merge pull request #2178 from aledbf/ref_tests_timeout

ref(test): close the response body and indicate the status code.