tiny improvements in casperjs test