Tighten check for test error