Improved unit tests and fixed bug in BufferBid