Fix unit test failures

This fixes failures found by running `cp ../../Cargo.lock . && ../../mach cargo test` in each crate in `components/*`.