add unit test for file upload

Add a unit test to validate the response page for the file upload function.