adding test-function and Interrupt driven timer-function