test: add a test for "W" pragma without a section

Not listed sections should be ignored.