CasperJS unit testing.