…compare (needs tests)
Initialize mocks on a per-test basis. TestAdHoc would always fail when run after TestFinishedAdHocPlanning. Some junit runners shuffle tests - causing an intermittant failure here.
…e and print the reason for the stall.
I think there's a larger problem where Valgrind tests don't look much different from regular tests, from an output to junit reporting point of view. How many tests run in Valgrind? It's really hard to say at the moment without inspecting all the logs. The reported number is likely wrong.