Add automation test script for Installer

Add test script and fix bugs recognized by test script for Wiperdog installer