Fixed some problems with the times module, added interval tests.