Fixed compilation warning in tests