continue work on tests and clean-up code
fixed null value and refactored setxattr