Added getAudioDevice(id), where the first parameter can take an id.

Updated tests