Add test case for download api key
Implement download api key