Clean up creation of VumiApi instances in tests a bit.