updated for unit test logging