Update the NdbTestCase class to set up more stubs, provide some util functions