adds unit tests for Discourse.HasCurrentUser
Merge pull request #1487 from velesin/has_current_user_tests

adds unit tests for Discourse.HasCurrentUser