add localdef test cases