Removed redundant test for valid filename index