Fixed test.  Added test to verify that the intervals are working propperly.