Tests for game logic