fix install scripts and added test scripts