Add basic tests for magic and magickernel for #9.
Merge pull request #13 from blink1073/add_tests

Add basic tests for magic and magickernel for #9.