MDL-46918 ddl: cover behavior with unit test