fixed one test where the buffer is allowed to be None