"semi-automatic" testing

I've written a passman-selftest script to "automatically" test passman. Some tests do require user interaction, though. Please review my changes.