fix log_repr import in its test