Fixed instrument lifecycle test
Merge pull request #656 from shenrie/master

Fixed instrument lifecycle test