UPDATE: Unit test for generator