wip-435: fixed a bug with setting batch size in bytes in WriteConf, adde...

...d tests, and removed some obsolete constants, fixed #435