tests for inheritance