In the tests of #103, a pre-requisite function is missing from the tests,
- In compound tests, delegations need to exist before running
- In delegation tests, there should be no delegation set up before running
We need to create common functions, ensureDelegationExist and ensureDelegationNotExist for the above purposes.