has-magic test