added functional test for generating shell script