Audio player test

Fix part of #589 to add unit test for audio playing.
Add the above two lines to delete test file at the end of the test.