[test] adds '--allow-sudo' test

This commit was sponsored by pebble {code}
http://pebblecode.com