wrap rm dir with test path