Break out the tests that were in test_magics.py