Added tests for file uploading