Gold edged lower, testing the $4,000-an-ounce threshold ahead of the US Federal Reserve’s interest-rate decision due later Wednesday.