Fix 1.9-only syntax in tests