Added Tests and some bugs at EdmondKarp