rewrite tests with grunt-mocha-casperjs