Added test functions for left and right child index finding