Added test for aggregated module stats

Change-Id: Id9bca5a1acebd69d166ed30539c77b21df7df55f