Add unit tests for inheritance with multiple layers