more tests, implemented record matching