added some precondition checks to various REST client utility methods and made it so ESResource now deletes before and after to prevent test cross reactivity.