Fixed MaxFlow tests and concurrency