fix a bug when decrease time for patients

Add a test input file