Frontend tests with PhantomJS and CasperJS