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

No weight means "1 weight".