Refactored refreshTokens to multiple methods
Tests for Corpus.add()