Merge "Add state testing to RecordThread "Microphone" methods" into sc-dev