Make common logger middleware threadsafe and locale configurable
Clairify some test names