Add simple tests for error reporting.
More idiomatic go.
Return errors from UI_UTIL_read_pw_string correctly.