Test cleanup in password_auth
Cleanup and fixes of old tests