fixed bug in (rmt:test-set-state-status-by-id) that resulted in stack dump