You need to update find_or_create_domain! to check the name (line 132 of api_behavior)