Added some tests for the GenerationTime.next_time method.

And fixed a couple of oopses.