fix tests so they report failures properly