move DdlCheck functional to Ddl\Resource along with tests