Added unit testing of BitBuffer.