add the test case for subst function