CIDEVMI-1161 and CIDEVMI-993, MOPAK__STC and RTE__STC

Also fixed result_set timestamp comparison which I broke previously, and improved unit_test get_samples loop.