Fix #32 if finishing time exceeds the test time then set it to test time instead of current