Add method to fix AttributeError in local/test_mic

This fixes a regression caused by PR #148.