Better test helper setup management

This is required by some changes that are coming soon as part of praekelt/vumi#707.