implement and test request matching