Merge "Add `encode_module_info` unit tests" into main