Added extends test case for direct inheritance