test for magit