update regression test generation to use go generate