api_key and username loading with test