fixed tests to work with the new casperjs (dev) version