another refinement on the local test