Improve sdk/lang/Buffer test