test for api token null