add unit test for each method in gmm