Modified tests.py. Added test_parse_request
Modified code