Test the to_b utility

The existing to_b implementation was not tested. This change adds new examples
for the to_b spec.

[#71229460]