Added test which accurately measures index size using java instrumentation