Fix off-by-one error when opening editor from the grep view
Print expected arguments when debugging a test