Move test class creation & disposal out of TestInvoker.