Test uses same date object for comparison

The test ParametersByName2 failed if the first statement was executed in
a different second than the second statement.
As the idea is to only test the parameters, printing the object once and
then using it as a parameter will fix the problem, as the same date
object is used.