simpler, more correct test