tweaks and tests for search depth limit