Fix child resources on route path

Fixed bug on child_resources when called from root path, i.e. top of trie.
child_resources now checks if the the current node has a parent and proceeds
accordingly. Added test case.