updating tests to support HasError code