added more tests for auto locale switching by url + code simplified