Improve test coverage to include partial word match as per specification.