unit test for secret file discovery