Added test for polymorphic functions