Fixed bug for timer setting. (Does not work checkbox.) (r-lab's issue #1337)
Update test code. (r-lab's issue #1337)