Fix parallel test failure

testLocale caused parallel test failure because it modify the private fields, session and functionAssertions. This is fine for singleThreaded test, but it would be better a test not to modify the fields. By using local variables when it needs to change these value, tests methods can be run in parallel.