Update Cargo.toml and add conditional test compilation