updated with logging on tests