A strong coupling test of S-duality