Improve setUp and tearDown

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