Tests that we do not crash during RTP for invoke-polymorphic
