Added setup scripts and fixed tests script