#700 - refactoring active visit test and new check in test to use db setup and changing responsabilities between them
#700 - changing the provided identifier to use main id on archives app
#700 - inlining waiter.