Fixes the warnings during test runs.