Add test for storemagic