fixing unit tests and log call in outputcontroller