updated how testDir works