add an basically test of inherit function and protype function