Add _newmembuffer function for testing buffer subjects.