new Unit test for api_key configuration