Add a test

The fill algorithm is now tested, and there is some minor modifications