Write test for folder permission issue (already fixed by #72); closes #71