fixed bug where a node was considered a parent even if it only contained (inclusively) the start of another node
brought tests up to date