fix testing directory scope