Update to IMS instrument status test for robustness and fix to agent status builder.
Merge pull request #1556 from edwardhunter/ims_status_tests_rebase

OOIION-1396 update. Updates ims status tests and fixes status_builder bug.