try to fix issue 3479 with new return value when two inputs are in wrong order and change test_latex