tests/src/io/test-sink.c: add hop_size option, check all memory allocations