TEST: add unit test on dummping class definition