added tests for getting files from request