Wrote more test on MiGrep, continued debugging