Test the to_b utility

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

[#71229460]
Merge branch 'cgfrost-71229460-test_to_b'