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 added new tests and removed unnecessary defining of casper variable.