fix compute_test_error
Merge pull request #842 from memimo/compute_test_error

fix compute_test_error