Added tests for pgmm.marginal