Fix CasperJS warning.
Merge pull request #1140 from halfdan/casperjs-warning

Fix CasperJS warning when running tests