Fix hang on test finish.
Support simplified -T in tests and add audio test.
Add -R parameter to tests to enable targeted testing.