Test error sum properly