Collimation testing using coherent gradient sensing