unit tests for ad time ranges