Created various tests for exit and result statements.