added test for setting locale on request