Convert test_substitution module to the unit test API.