Move exitcode tests to python tests
Remove exitcode test shell script
Update exitcode tests
Refactor exitcode to make testing easier
PM-738 Use Popen instead of check_output