Disposing the runtime in tests