added logout to patient search tests