add test for ExactMatchCluster

also fix a bug introduced in the last commit