test for calling the righ endpoint
specs for uploading