[BZ-1011993] fix segment memory initialization from ria nodes
[BZ-967441] adding test case demonstrating that temporal queries are working as expected
BZ-1022140: removing busy wait loop from fireUntilHalt()
(cherry picked from commit a0ec3c66df8d0ae88b0487e9f4b726cefc679155)