Add missing error type in string found by tests.
Add tests for error codes.