[tests] Various stability fixes to tests
[build] Manage version of joda-time to prevent conflicts between dependencies.