add some test case for core class.