fixes issue where everyone shows in all communities
adding tests for communities.json
Merge branch 'pr/1390'