fix tests, to_s on api_key