Updated the unit test to use JODA time for creating ISO date format.

The unit test had been using the built-in java date formatter, this was causing unit test failures if the build machine was on GMT as the formatter (in the unit test) did not understand 'Z' instead of 00:00.