Fixed on how test case are teardown

Signed-off-by: crynobone <crynobone@gmail.com>