change id creator method which conflicts against scala key word 'with'. add test scheduler test case.