Added wait to the find patient test