mongoDb test for statsComponentTest