Improve JS resource model tests for Markdown support.

This adds some new unit tests to better test the richText values for
some resource models, ensuring that what we pass in will correctly get
serialized for any API calls.

Reviewed at https://reviews.reviewboard.org/r/6478/