tests and fix #2778 (session language not overwritten by url change)