Tests for Exiting the Program