test cases for scheduler
almost finish
add some comments