Create test harness
Add working generate2 implementation