FIX for issue 912, fixed Assignments Submitted calculation on dashboard

Fixed calculation of the number of assignments submitted (#912). It used to be the number of submissions, including multiple submissions per group. Now it calculates the number of groups with at least one submission. Two unit tests were written.