Tests for api calls with token