create tests for the new sudo detection method
create a sudo detection method to help better detect a need for sudo

Closes #7