add xattr empty test like BD one; fix error constant