Checking with hasClass method is prefered because it is more resillient to UX changes
Test that the title of the microphone mute button changes