Add tests for time_ tables