Fix hardcoded datetimes in tests

Now tests do not depend on locale.