fix dir test