Add unit tests for NetworkBuffer
Fix append integer methods