Add remaining tests for request.py to achieve 100% coverage