Add test for end-of-program marker.
Merge pull request #2371 from take-cheeze/end_of_code

Add test for end-of-program marker.