test for creating and deleting domains