Jesus begins to teach about marriage and divorce.
"came to Jesus"
Here "tested" is used in a negative sense. Alternate translation: "and challenged him by asking him" or "and wanted to trap him by asking him"