Add tests & debug subst/prepending.