Bugfix hashdir, new parent attr, improved unit tests