refactoring of driver_test.go

introduce a test for long data (longer than defaultBufSize in buffer.go) to test zerocopy code
setup with init() instead of getEnv(), get rid of sync-dependency
extract common initialization code, use callback methods and prepare for further simplifications