Test expand-assert and generalize text-macro-expansions.