add spec test of get upload url api

refer to #8 for the cc code
Merge pull request #13 from andl/pull_8_spec

add spec test for #8