Add junit test for icGen