Split inherit tests into different files

For adding further tests and restructuring tests in follow-ups.

Change-Id: I8752b0fe780b7affb5281cea3ca63f5ee0eb87c8