[tor-commits] [goptlib/master] Add tests for error functions.