errors() and clear() tests