Added a test for isAlive