Added a test to verify index directory overriding