fixed bugs in test_script. add crossvalidation for 2/3 parameters