Added tests for error messages updated