Implement upload testing, fix uploading mechanism.