Fixes a bunch of clippy errors and warnings. Main goal was to silence the noisy
unwrap_used lints in the test modules
Happy to discuss and roll back any of these that are not helpful! I'm using the standard clippy config to find these lints, rather than the heavily cherry-picked config used throughout this project.