Add tests for 'instance.returnAllErrors' setting