added write community to test file