add test for transaction on polymorphic has many