Fixed warnings in tests