Added simple script-based test mechanism in demo1