test with dir