Fixed dependency issue and replaced deprecated HudsonTestCase

- Fixed no class def error on class Base64OutputStream when running unit tests.
- Replaced deprecated HudsonTestCase class.