Test Polymorphic Wrapper for function objects