Add magics tests to setup.py and make testing with warning a separate target