Put exception imports into individual tests rather than importing globally [ci-skip]