Add missing constructor to core.time.TimeException.

`TimeException` only has one of the standard exception constructors. This fixes that and adds some basic tests for the constructors.