Minor fix of a warning in tests