Improved code organisation for casperjs files and also changed grunt so that tests would run each time a test js file is saved.