adding tests for upload