It seems your test fails on the CSS sourcemap syntax. Since version 1.5 Less support v3 source map.
When you compile your Less code with source maps, your CSS will end with a reference to sourcemap file, for instance as follows:
/*# sourceMappingURL=bootstrap-theme.css.map */
Notice that the above is valid CSS comment syntax.
And the bootstrap-theme.css.map file has been created. That file indeed contains JSON and not CSS, something like that shown below:
{"version":3,"file":"bootstrap-theme.css","sources":["less/theme.less"
So your tests should not validate *.css.map files as CSS.