Fixed dependencies
Simplified specs using assert_dom_equal instead of assert_equal