add main method for running upload test