Clean up large swathes of warnings in the test suite

Paired with @damondouglas