fix typo and add test case for data type defs