Test for tryreverse
Add a test for substitute_with