expose some methods and handle test case

git-svn-id: http://svn.vuze.com/public/client/trunk@40179 c2c1b7af-1477-405b-86ee-8aefd1fc4dd2