add test for patient form view