Added test case to fix bug related to main having a matching directory