Tests cleanup and Leaderboard connection reuse issue.

* Re-use helper functions in tests
* Make sure the Activity redis connection_pool is reused in the
  Leaderboard.