Fixed some bugs in tests, models, game_achievements.
Merge.