Added unit tests for client details/token enhancer

Basic unit tests. Can be enhanced over time.
Fixed some issues with the unit tests

Looks like formatting changes in the log messages.