Add tests and jshint fixes for custom log formatter