Cleanup test using Ember.$.trim

`String#replace(/\s+/g, '')` is the same as `Ember.$.trim`.
To simplify test code, I rewrite with the latter.
[DOC beta] Fix code highlight and add missing YUIDoc markup
Merge pull request #3979 from tricknotes/cleanup-tests

Cleanup test using Ember.$.trim
Merge pull request #3980 from tricknotes/fix-docs

[DOC beta] Fix code highlight and add missing YUIDoc markup