Changing total_seconds in timefuncs, fixing _execute in ec, adding unittest