Added unit test for MATE