Substitutes new for subtrees for which test is true.
(sb-impl::new sb-impl::test sb-impl::tree &key sb-impl::key)