Merge "Add unit tests for PolicyAgentApi in dashboard"