update unit test to adopt the string ToBytes extension