Added test class for substitution.