add/extracted init script tests code from init_script_example.sh
updated