Added unit tests for creating next generation.