adding a new testing file by Fei

Adding a api testing script for 'upload'