generate regression tests automatically