Add unittests for jgen parser