Added bash script as part of test and npm test. Also added jslink --test mode run and made it exit with non zero process exit code.