Adding Tests and Max Flow