Added test cases for recording sound