Add and adapt buflib shrink tests

Change-Id: I8aad86226c9c9b2c04727a3703941615638b3a49
5 files changed