test error calculate case fix