add class test case and test trait's and inheritance's usage