added snapBufferTest