Audio tools tests

Whole bunch of things fixed, including plenty of logging, exceptions and generally cool audio-related-things.