JAVAAPI-4 fixed failures in the stats tests for certain build environments