master: fleshing out dirnode tests and adding a little to dirnode