Fix tests for erros module.