Fix test in spec.