unit testing started

unit tests underway, to allow the refactoring required to fix the
current uncachability of re-rendered templates