api logging - fixed unit tests