refactoring patient search by name and adding automated tests
refactoring patient search by name and adding automated tests, part 2