Add test for fetchCommand with both folder and repo