refactorying cryptogram manager and tests