added sanity checking to file system operations
added assertion on save step of the remove() unit test - this hid an error where the entry was not saved because of lack of fs sanity checking