Added test case for uploaded file

- Also added support for skipping the "is_uploaed_file" call in
  UploaedFile for test cases.