test_custom_zmags