Constraint tests

finished unit test for all_after_time and all_before_time