added test for file upload, improved request method testing