You probably have some broken lines in /etc/asterisk/voicemail.conf.
The next version includes an improved script that is more resilient to this problems, you can download it from:
http://www.fop2.com/downloads/autoconfi ... reepbx.txt
Rename it to .sh , give execute permissions to it and replace your current one and try again the --test
Best regards,