added tests for coordinator

added tests for coordinator