refactor tests to use HudsonTestCase setup and tearDown methods

Use the setup and teardown instead of doing it in each test.

Change-Id: I04c477f82bb3e26fb6f82cfac5f259c0eaef43ca