Object inheritance test generator