Added more test coverage for register patient.