fixed DocumentCountFunctionalTest for Java 6