Added private upload and editing test refactor to the train