change test generation to target dir