use :via to specify run method in place of :sudo
add test cases