Scala Collector: Use `optionalCookie` directive rather than `optionalHeaderByName` for the `sp` cookie.  Fill in tests checking the cookie.