Test to getErrors() method added.