Added tuning fn, fixed test-on-train err in testClassAcc