Add tests to timerange

This is the tests from #759 seeing how it doesn't look like that is getting in for 0.4