adding tests modules for pksci.tools.datautils classes
updating test module for TextLogGenerator
Updating dict2logline method to handle more formatspec options.

The method is no more robust to errors and also handles
the format spec options for precision and presentation type.