created matches tests and changes matches model