Fixed warnings during tests