add test for swapping of GraphicObject

Change-Id: I341f52e5dfedb61130545cf30ff61e891abc7e04