added functional test for visit_create in application controller.
Merge branch 'ApplicationControllerFunctionalTest'