play with casperjs and add some tests for that