Add key for funtional testing
Refactoring duplicate code between storage.key and storage.bucket.