[HttpFoundation][Tests] add test for matches method