Fixing a bug in community
Adding unit tests for community