It only has 3 unit tests on it, not 5.
If it's 31 you're talking about I solved it with partition-by identity, which will group things based on whether they're the same thing:
#(partition-by identity %)
-Ted