Fixed bug that returned different groups for the same test