Write test cases for class and ind_defs module