add test for util.timedelta_to_seconds

I added test for util.timedelta_to_seconds.
Thanks.