Add tests to check if ANALYZE is choosing common non-periodic samples for the stat4 table.
Further stat4 related tests.
Simplify branch coverage testing by interchanging the order of two tests
in the whereLoopInsert() function.