Rename spanByPredicate() to spanBy().
Tests for methods spanBy() and breakBy().
Minor fix in tests.