Added timeformat test (related to #4524)

Added test to make sure the wms_timeformat is used correctly. Related to the fix in #4524