Fix test errors caused by rational-to-float change
Finish TestTrain