Call the right method when testing getHeadObject()