fixed compiler warning in tests