WIP: writing unit tests.
Added some unit tests around SpoolLog. Interacting between doPut and chkptLock needs to be synchronize.