Add test to check processes get cleaned up after pro/epilogs
Add new test for native cray system
Fix minor issues with test
Make code slightly cleaner