[tests] misc fixes to util & match

- include kmmatch.h in test_match.c
- fix const consistnancy in test_util.c