adds unit tests for Discourse.Controller
Merge pull request #1483 from velesin/controller_tests

adds unit tests for Discourse.Controller