agent: add test for consul service sync state