Add spec tests for the agent classes for consul