refactored to use casperjs test <test>