We now use specified date formats for converting various date types to Strings and comparing them. Before, in some cases toString() was used which strips trailing zeros, causing sporadic failures. JDK9 changed the behaviour of Date related toString methods, making tests fail all the time. Therefore this fix is required for executing tests with JDK9. Original pull request: #228.