add some test code about class