test MAGE class