add spec test of get upload url api

refer to #8 for the cc code