a start on visualization "unit" tests

Merging this in now because the process of testing uncovered some bugs that are fixed here and need to get into the codebase.

The smbg tests are currently broken because I haven't yet updated them in accordance with #125.

Bolus and carb tooltip tests still need a bit of work; basal tests (incl. tooltips) not yet written.