bugfix in test for restore password