check arguments in tests, and noticed missing getBufferSizeNeeded method