Modernize/cleanup UT code (follow LHCb!2892)
- follow const-correctness changes in LHCb
- minimize scope of local variables
- prefer auto
- prefer structured bindings
must be applied in conjunction with LHCb!2892 (merged)
Edited by Rosen Matev
must be applied in conjunction with LHCb!2892 (merged)