test upload method success