Adding unit_test_main for testing infrastructure
Adding WAV module updates to allow writing of WAV files and relevant tests.