PHP-1068: Test that CommandResult is iterable

Use ping instead of isMaster since the result document is more predictable.