move constant override outside of test setup

it was being noisy with the warnings.