Several fixes for tests and lang settings