Added test for Auto-terminate