HasOnePolymorphic and HasManyPolymorphic with tests