add polymorphism test case