Changed exception statement in send_request
Cleaned up tests by parametrize