add unit tests for adt.ensureVisit() method