Fix for tests warnings.