Tests for polymorphic association matcher