write some unit test for basic operations and object inherit.