Added unit test for $limit parameter
Re-ordering $orderBy, $groupBy  --> $groupBy, $orderBy as it's proper order in SQL logic