test for adding api key