Implementing the ClockDivider with proper testing