Fixed the call_user_func_array reference (thought this was previously fixed).
Added a test for two levels of grouping.