added functional test for visit_create in application controller.