added test for inheritance init