Adding a timer test.

Fix initialization bug in handler that was causing flags
to have indeterminate value.