#503 fixing controller test for visit details