add tests for uploading document with missing form parameters