Merge pull request #5852
51598b2 Reinitialize state in between individual unit tests. (Pieter Wuille)