Change test runner to support casper 1.0.x