adds unit tests for Discourse.Model
Merge pull request #1472 from velesin/model_tests

adds unit tests for Discourse.Model