Add python-magic to test dependencies