Adds current test uploading code (needs fixing).