Add test for negative genvar bug.