Tests for separate input and output buffer (alloc-free operation) and the same writable buffer used as input and output (inplace operation).