Testing process exit code and status