updated tests and examples for matchdict