Added tests for isActive() method