added test for typeofsubnodes block
added test for paths ending with slash