Added tests for clearing log when a job is started or requeued