Install package after moving system from one env to other

- Automated testcase 195368.
- Using sethostname.sh to set the proper hostname
- Updated  system/add-package fn to pass expected status as an argument
- Updated test.system/step-to-configure-server-for-pkg-install fn to pass env as an arg.