Updated test script
Separated document and term buffers in storage class