Rename function: do -> gen_test