Introduce bugbear to the test suite and fix some of it's lint violations.