The test prints the code only if requested.