Added test.js script for testing with casperjs