added unit test for coordinator