Implemented test functional for upload file. Should be refactored