completed test for inheritance model