Clean old scripts. Fix test cases.