added unit test for getting the response code if no request was send