fix compiation failure in tests