Update methods and fix error.
Add tests for AchievementManager.