Add test case for TimeHelper::format()

Test reversibility of date and format parameters.