Define the time objects in test more specifically.

This is passing locally but was not on travis. This should hopefully fix
it.