Using mocha-casperjs for testing