add tests for OnSubscribeSearch, NonLeaf