Add more unit tests for error messages.