updated test suite to override stdin for user pw, so that travis-ci can run the tests