Truncate test to avoid deprecated CreateCommand ctor.