Add code-coverage for ifmap and fix build break for agent.