Fixed a small issue in grouped metrics unit tests