UserDB with a unittest and SHA1 authentication