Set community state too.
Add containsFlush function with positive tests.