adding inOrder successor method and related test.