Silence `clippy::type_complexity` warning in tests
Replace if-let/match with `panic!(…)` on `Err(…)` with simple `.unwrap()`/`.expect()`Fix unreachable code
Replace `assert!(false, …)`/`assert!(false)` with `panic!(…)`/`panic!()`
Move all to top level