Unittests: Add unittest for Declare and Undeclare object in ClientAgent.
ClientAgent: Implement declare and undeclare object.