test a dir