tests and implementation for regenerate_api_access_key, closes #74