 
-casper.test.begin "DOM Testing", 9, (test) ->
+casper.test.begin "DOM Testing", 16, (test) ->
 
 
   casper.start()

      #   @echo result

      @.evaluate ->
        junction("body").append "<div id=\"second\"></div>"

      test.assertExists "#second", ["Append is successful"]


        junction("#this_does_not_exist").attr("class")

      test.assertEquals theThing, null, ["Attr returns null if the item doesn't exist"]

      # should get the attribute
      theThing = @.evaluate ->

        junction("#test").attr("class")

      test.assertEquals theThing, "testing", ["Attr successfully get the attribute"]

      # should set the attribute
      theThing = @.evaluate ->

        junction("#test").attr("class", "foo").attr("class")

      test.assertEquals theThing, "foo", ["Attr successfully sets an attribute"]

      return

