wip()
simplifying test and fixing issue with insufficient digesting and flushing