Fix some strange JDK6 compilation errors and make AbstractTest util
methods protected
- note that JDK6 is not supported anymore