adds unit tests for Discourse.Controller