Add tests for time format.