Fix the bug with fetch_community by domain and add a test for that