Fix tests CasperJS

Issue: #400