cleanup nt.assert usage in test_magic

use `assert_in` and `assert_equal` in place of a few `assert_true/false`