improve test code. Moved locale to class variable, Optimized mock creation