Restore subprocess import to test