tests for fill
more tests
refactor implementation testing code to make available in main source