Added more unit tests for WordExtractor