unit-tests for fill.c