adds unit tests for Discourse.HasCurrentUser