(WIP) Start of expect code to test setup

Needs to be robust so that it will delete the entity if it already exists at the start (ie, not permafail).

NOTE: I don't think this code belongs here.  I don't know where it belongs (other than in git).