Tests for lottery.