Add test for tabular format with header
Fix issue with multiple files with same path and different type being inserted in the index