Add tests for exitable adapter.