Fixing the test in phantomjs and moo tools