add doctest showing bug in composeSubst