Test can create directory and remove it