Added a test for Inheritance