fixing matches test