Implemented some tests for upload-controller