cbufp: add unit test interface for cbufps