Fix some errors in the reftests.