Test for subprocess.kill and variable name cleanup.

This pull request doesn't make any functional change. Just adds a test for when child process forks and kills its child. There is also a variable cleanup in src/core.c