constraint unittest all_after_time and all_before time