testing gradient definitions