Change timer to use newer setitimer (vs old alarm)
Add tests for timer