test/bufferlist.cc: fix compiler warning

Fix compare between signed (int) and unsigned (size_t).

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>
fix "(error) Reference to temporary returned"

Signed-off-by: Danny Al-Gaaf <danny.al-gaaf@bisect.de>