Improve error buffer test