Added test for AbstractIndex.statGetNWrittenPages() and removed numerous
warnings, unused imports and concole outputs of tests