Add a test for the non-repo dir check