Add a test case to show that getters in derived classes dominate.