small buf fix in tests