add test cases for dmd engine