Unit tests for LESS/SCSS

Also fixes for #8894 and #8895.
Yes, I think they should be added