Fixes broken DM test

- The `quality_flag` was improperly typed in the tests