Check patient ID correctly.
Fix test for invalid patient ID in send sms state.