test for when headings invalid when file and headings specified.