test edit dir