test polymorphic model usage