Fixed working with single Buffer in write method and added Tests

fixed vacuum and status tests
fixed bug where buffers where not working correctly
added tests for writing buffers and writing multiple buffers