update content about inheritance
add test case