MULE-6826: Fix flaky unit test: DateTimeTestCase

Also fixed other test cases with similar problems.
Merge pull request #152 from mulesoft/MULE-6826

MULE-6826: Fix flaky unit test: DateTimeTestCase