Added getter for error messages.
- Implemented unit test.