Add test for eeagent behaviour when it is restarted with a REJECTED proc