Add basic tests for magic and magickernel for #9.