updated unit tests for some code changes in requests.py