tests
added basic tests for matcher and dispatcher