Hotfix: Move mixer variables in test routine into function