Add a test for bad magic