Refactored testNullIndexing test and moved from QueryAdvancedTest into QueryIndexingTest.
Replaced execution time checking with invocation count checking using Mockito.
Counting how many times fields are accessed when using indexes and how many times when not.
Merge pull request #4046 from ajermakovics/mast/test-null-indexing-2

Tests for queries with indexes on null fields