Ruby timers tests and bug fixes