Add unit tests for mbuf