Refactor unit tests to test css content parsing bits directly.

Test duplication, needs cleaning-up.