test to directory