refactoring the way tests run when entering locations