Article casper tests

This will hopefully fix intermittent failures by wrapping tests in ```casper.then``` to stop casper trying to execute tests before the page has loaded.

Also removed unnecessary defining of casper variable.