Regenerate test code