add node traversal methods to public api

These were previously protected methods. They are generally useful methods for tests so this PR adds them to the public API for a test