fixed password mangling, fixed test, error parsing