test tuple matching