tests: Add a good set of unit tests for UserActivityInterval.
tests: Add a good set of unit tests for UserActivityInterval.

This system was written years ago and has been working well the whole
time, but having unit tests for it will help future developers in
understanding what the intent is.

punchagan/zulip,hackerkid/zulip,andersk/zulip,shubhamdhama/zulip,zulip/zulip,andersk/zulip,punchagan/zulip,zulip/zulip,hackerkid/zulip,rht/zulip,synicalsyntax/zulip,tommyip/zulip,kou/zulip,timabbott/zulip,rishig/zulip,timabbott/zulip,timabbott/zulip,synicalsyntax/zulip,timabbott/zulip,andersk/zulip,andersk/zulip,tommyip/zulip,dhcrzf/zulip,synicalsyntax/zulip,rht/zulip,eeshangarg/zulip,dhcrzf/zulip,eeshangarg/zulip,brainwane/zulip,eeshangarg/zulip,andersk/zulip,showell/zulip,tommyip/zulip,tommyip/zulip,hackerkid/zulip,synicalsyntax/zulip,shubhamdhama/zulip,zulip/zulip,timabbott/zulip,rishig/zulip,dhcrzf/zulip,shubhamdhama/zulip,dhcrzf/zulip,rishig/zulip,showell/zulip,rishig/zulip,hackerkid/zulip,rishig/zulip,hackerkid/zulip,hackerkid/zulip,eeshangarg/zulip,dhcrzf/zulip,showell/zulip,jackrzhang/zulip,jackrzhang/zulip,shubhamdhama/zulip,brainwane/zulip,andersk/zulip,kou/zulip,kou/zulip,shubhamdhama/zulip,eeshangarg/zulip,hackerkid/zulip,timabbott/zulip,zulip/zulip,showell/zulip,punchagan/zulip,jackrzhang/zulip,dhcrzf/zulip,synicalsyntax/zulip,punchagan/zulip,punchagan/zulip,brainwane/zulip,dhcrzf/zulip,eeshangarg/zulip,tommyip/zulip,kou/zulip,rht/zulip,andersk/zulip,rht/zulip,brainwane/zulip,punchagan/zulip,showell/zulip,brainwane/zulip,rht/zulip,tommyip/zulip,showell/zulip,jackrzhang/zulip,shubhamdhama/zulip,eeshangarg/zulip,jackrzhang/zulip,kou/zulip,rht/zulip,synicalsyntax/zulip,brainwane/zulip,kou/zulip,zulip/zulip,zulip/zulip,rishig/zulip,timabbott/zulip,brainwane/zulip,jackrzhang/zulip,punchagan/zulip,shubhamdhama/zulip,tommyip/zulip,showell/zulip,synicalsyntax/zulip,jackrzhang/zulip,rht/zulip,rishig/zulip,kou/zulip,zulip/zulip