Add agent test in ci_unittest.

Change-Id: I08ec605e45d6186beebe9601f31974476770c235
Merge "Add agent test in ci_unittest."