swtimer: add two test cases