Test for api keys