Port tests for image attributes

Change-Id: I1addfea8f77fd29a3eb8c5c370c5ee3d539b1d6f
Merge "Port tests for image attributes"