Delete a directory and rewritten the test