adds unit tests for Discourse.Model