Wrap CasperJS tests in a helper function to reduce boilerplate.