added test scripts for rails apps