Fix unit test for active method