Added a test for printing a simulated program.