Added test: findWordsWithPrefix