Simplified get variable processing to one line
Updated testMakeRequestWithError() test to check for 404 error code instead of response content