Do not raise warning when the old code was working correctly.
remove duplicate test