[BUGFIX beta] Fix component registration tests under IE8.

In IE8 whitespace between `<div>` elements is not respected, causing
these tests to fail.
Merge pull request #4243 from rjackson/fix_component_tests

[BUGFIX beta] Fix component registration tests under IE8.