Fixed compilation errors for StatsMonitor tests