Fixing casperjs tests to run on casperjs 1.0.x.