Fix #13316. Use minified version in unit testing.

Also migrates the XHR check added to 2.0 in 62acda819f9b6fba9263d0b613e15285807b23a7.
Fix build until next grunt rc, disable compare_size.