Adds unit tests for Chunkload class

Additionaly, since these written after the fact, it changes than reverts some parts
of the Chunkload.rb to test the tests itself