diff --git a/test/helper.rb b/test/helper.rb
index <HASH>..<HASH> 100755
--- a/test/helper.rb
+++ b/test/helper.rb
@@ -25,7 +25,8 @@ class Test::Unit::TestCase
     exps.each_with_index do |e, i|
       error = "#{e.inspect} didn't change by #{difference}"
       error = "#{message}.\n#{error}" if message
-      assert_equal(before[i] + difference, eval(e, b), error)
+      after = eval(e, b)
+      assert_equal(before[i] + difference, after, error)
     end
   end
 
@@ -49,6 +50,16 @@ class Asset
   key :title, String
   attachment :image
   attachment :file
+  has_many :embedded_assets
+end
+
+class EmbeddedAsset
+  include MongoMapper::EmbeddedDocument
+  plugin Joint
+
+  key :title, String
+  attachment :image
+  attachment :file
 end
 
 class BaseModel
helper.rb: added EmbeddedAsset class and updated Asset class with many embedded_assets.