Added some simple tests with casperjs.