couple of tests for distinct substrings