Add test for create api key.