Add test set error calculation