refactored some of test_activate_instrument.py. More work left
test fixed and working. need to refine logic
using log debugs
a couple of unnecessary lines removed.
improved test logic
test finally works without timing out
Merge pull request #664 from swarbhanu/refactor_test_activate_instruments

Makes test_activate_instruments more readable. Aligns with the other tests and code.