Can you reduce the CSS test data to a minimum that still has the problem? Currently, I do not see what the exact problem is: two selectors, or no spaces, or two rules for the same property?

Maybe you can also change the test name to show what the exact case is.