add some checks in inode.c and now the tests pass again