Add test-exit.

Sets the correct exit status.