fixed typo in test cases and added a untility function to reset the audio element for testing