Adding a test for TM search and trailing characters