Some tests + check buffer length passed to constructor