add_to_visited testing