Fix tests:

- adapt the tst_barline test code to the new flag logic;
- correct more test ref scores.