tests: cpp: added read/write offset and size tests