Tests for UserDatabase class.