Fix appointments and sending messages.
Update tests