add test for CalcAction/ClearError interaction

Change-Id: Ie2747d080950b1f64bb6f5603efb2903812b524c