Added algorithm test to visits controller