add some tests for inheritance