Split the ifmap test lib so that it can be used by the agent code

Change-Id: I3199eab9c7fc7eaa014188432f234d1f0dd3d369
Merge "Split the ifmap test lib so that it can be used by the agent code"