move to shell script so that it returns exit code 1 on test failures