fixed unit test for fetch_aws_keys